package com.Aliyun.Wap.alipay.config;

import com.limao.Tool.CacheClass;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *版本：3.3
 *日期：2012-08-10
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
	
 *提示：如何获取安全校验码和合作身份者ID
 *1.用您的签约支付宝账号登录支付宝网站(www.alipay.com)
 *2.点击“商家服务”(https://b.alipay.com/order/myOrder.htm)
 *3.点击“查询合作者身份(PID)”、“查询安全校验码(Key)”

 *安全校验码查看时，输入支付密码后，页面呈灰色的现象，怎么办？
 *解决方法：
 *1、检查浏览器配置，不让浏览器做弹框屏蔽设置
 *2、更换浏览器或电脑，重新登录查询。
 */

public class AlipayConfig {
	
	//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
	// 合作身份者ID，以2088开头由16位纯数字组成的字符串
	//public static String partner = "2088121547468378";
	public static String partner = "2088021722270955";
	
	// 收款支付宝账号，以2088开头由16位纯数字组成的字符串，一般情况下收款账号就是签约账号
	public static String seller_id = partner;
	// 商户的私钥
	//public static String private_key = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAMvpuXOj7M/l0q0fMSL3c7w7bGY8IVxJ+eDiXxB0nAxoCjLeThPKOJLA+88oL1us+pnFy4QHch/V9IrKT+O8ZFB02oYnUGfA7+SC2qy82UpQTdwn1AdyEAo9PCcaRtqJ2VwUg1yS7v4f7OjQFV/+Xfbbc0TBaV6l5ovU6SGXRuN7AgMBAAECgYEAgF1ZyVpgMV/UB/eizwhHay9dRd6Egbxv+QmIHqvJsGWuRed77ylWA8xIuFfruCJkf3jsbOjjBveBQf2p3QszefFBgvuoscKVqtPXLE7p6z446nYDVMojOhMjnfpQ6HmO9+jK0C2igMaYw7IQZO+SZ/LEUvPa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/gQ==";
	
	// 支付宝的公钥，无需修改该值
	//public static String ali_public_key  = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCjdOYUc4slpNqNRWdcktLD4TRS/OYzfX/BhB5MSSXRJQi50Fyh2doNXUZNpV3G3iwI3od3utW7j3G4Y5GYYDOcjTkLa+GvC5w1mRrlAbUqiY06cZCf5LqZGRh22UoG/d5RtTteSE7BdAghBut2L2f5M2lZcmfQrQc18ZXLxRXtLQIDAQAB";
	//public static String ali_public_key  = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB";
	public static String ali_public_key  = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB";
	
	//↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
	

	// 调试用，创建TXT日志文件夹路径
	public static String log_path = "D:\\";

	// 字符编码格式 目前支持 gbk 或 utf-8
	public static String input_charset = "utf-8";
	
	// 签名方式 不需修改
	public static String sign_type = "RSA";
	
	

	public static String getAliPartner()
	{
		
		partner=CacheClass.getSYS_BaseDataCacheManager().Load_Param("aliPartner").trim();
		if(CacheClass.isEmpty(partner))
		{
			partner="2088021811292189";
		}
		return partner;
	}
	
	
	
	public static String getAliPrivateKey()
	{
		
		private_key=CacheClass.getSYS_BaseDataCacheManager().Load_Param("aliPrivateKey").trim();
		if(CacheClass.isEmpty(private_key))
		{
			private_key="MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAKISkN6wlszfd3hqqwvvPZ6lWvBWskBGC+aAt/EzaADsKpvBv20kDojv4XeCrKOLmFkNvpPTSHWzVKc3lPSwb/S/9MhDqFtr9VHQ6EjrjnODddb/Nfsb3tCj66aUhaPCJQ1VgrlO4M7+xJ76NTHmBdbkhJqS4xWKjiFwBc/btghhAgMBAAECgYAZY0MiPxNAQHkceckVc4J5iXl3UH1XqCFRGDS4Kc9O5a+++licJhvIw5rT97pHXCSfPpHt4hjlpxPJpeFFeyXuNxHfnh7NLUk1YiZIJoKxaPbZ6dwQ4WTX/5iXiKAXf1qZy6LWMcPXhYIQ9pkfp4xweXJ/C0JJxaba9nhE2nju4QJBANKGYlAceU2C5IiBRxx63SEL9HUdBSVDDArF/yOieA/qYj7K6cSx2tifDXEB/7uiMr9h+JWUHkeNuJIQvszPpz0CQQDFFNvAnYGP2XLVs7Rvf4PwmJgpGCT1HoBPhO8UIdvDVVJocde0OctE4QfebnBwzt5M3DMHACPmXwEMKMCYDpf1AkBF84EXPV7Q8n0dHleSjwCKyn4fq9TZ3L1TlxZ/sKxUHX0ngCTMxowBDlhZBGEE55AVJ2iBywWEoQKDBi1fwF/BAkB7B5pnk+vdsRFO9vAc6q2i9J+Ih9oKaxAOlB3ro3ddaVYYfXj6uVl7lj8jTC5FPd7ofE4egKfomEY/IPGZ+wJBAkAtKA/TouubJF0y9qgYA+kP0VrBkd3WNj6b0SxMxxldzj2KadamsGaivY6MW5MdtYq8GxKhlHVDqqKmpGCqGZn9";
		}
		return private_key;
	}		
	

	public static String getAliSellerId()
	{
		
		seller_id=CacheClass.getSYS_BaseDataCacheManager().Load_Param("aliSellerId").trim();
		if(CacheClass.isEmpty(seller_id))
		{
			seller_id="crowd2016@163.com";
		}
		return seller_id;
	}		
	
	
	

}
